<form id="vietland_ads_post_form" action="{{ path('_vietland_create_post', {'foo': foo, '_format': 'json'}) }}" method="post" {{ form_enctype(form) }}>
    {{ form_widget(form.titlePost, {'attr': {'placeholder': 'Tiêu đề'}}) }}
    <span class="error">{{ form_errors(form.titlePost) }}</span>
    {{ form_widget(form.adress, {'attr': {'placeholder': 'Địa chỉ', 'class' : 'adress'}}) }}
    <span class="error">{{ form_errors(form.adress) }}</span>
    {{ form_widget(form.content, {'attr': {'placeholder': 'Nội dung tin'}}) }}
    <span class="error">{{ form_errors(form.content) }}</span>
    <input type="hidden" id="uid" name="UPLOAD_IDENTIFIER" value="{{ foo }}">
    <input type="file" class="files" multiple="multiple" name="vietland_ads_post_images[images][]" id="vietland_ads_post_images">
    {{ form_widget(form.category) }}
    <span class="error">{{ form_errors(form.category) }}</span>
    <div id="progress-bar"></div>
    {{ form_widget(form._token) }} 
    {{ form_errors(form) }}
</form>